package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.SystemDictionaryItem;
import cn.wolfcode.crm.qo.QueryObject;
import java.util.List;

public interface SystemDictionaryItemMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SystemDictionaryItem record);

    SystemDictionaryItem selectByPrimaryKey(Long id);

    List<SystemDictionaryItem> selectAll();

    int updateByPrimaryKey(SystemDictionaryItem record);

    List<SystemDictionaryItem> query(QueryObject qo);

    /**
     * 根据字典明细的parentId查询对应的字典明细 中所有sequence的最大值
     * @param parentId
     * @return
     */
    int selectMaxSequenceByParentId(Long parentId);

    List<SystemDictionaryItem> selectDicItemTitleByDicSn(String sn);
}